import request from '@/utils/request'
//查询供应商列表
export function getSupplierList(query){
  return request(
    {
      url: '/erp/supplier/list',
      method: 'get',
      params: query
    }
  )
}
//新增供应商
export function addSupplier(data){
  return request(
    {
      url: '/erp/supplier/add',
      method: 'post',
      data: data
    }
  )
}
//修改供应商
export function updateSupplier(data){
  return request(
    {
      url: '/erp/supplier/update',
      method: 'post',
      data: data
    }
  )
}
// //删除供应商
// export function deleteSupplier(supplierIds){
//   return request(
//     {
//       url: '/erp/supplier/delete?supplierIds=' + supplierIds,
//       method: 'post',
//     }
//   )
// }

